const materialEntry = {
	state: {
		showAddMaterialView: false,
		materialCategory:[{
			name: "材料费-有偿服务",
			list: [],
			materialShow: true,
			materialPrice:0,
		},
		{
			name: "材料费-材料销售",
			list: [],
			materialShow: true,
			materialPrice:0,
		}, {
			name: "材料费-应急抢修",
			list: [],
			materialShow: true,
			materialPrice:0,
		}
	],
		
	},
	mutations: {
		showAddMaterialStatus(state, payload) {
			state.showAddMaterialView = payload.showAddMaterialView;
		},
		addmMterialCategory(state,materialCategory) {
			state.materialCategory.push(materialCategory);
		},
		changeShow(state,index,isShow){
			state.materialCategory[index].materialShow = isShow;
		}

	}
}

export default materialEntry